package cn.wbnull.springbootdemo.enity;

import lombok.Data;

/*
 * @Author:大力王
 * @Date:2025/7/1-01-18:01
 * 开始了
 */
@Data
public class Position {
    public double x;
    public double y;

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        Position position = (Position) obj;
        return x == position.x && y == position.y;
    }
}
